package com.zds.dao.impl;

import com.zds.dao.UserDao;
import com.zds.entity.User;
import com.zds.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @className:UserDaoimpl
 * @date: 2025/6/10 下午4:53
 * @description:
 */
@Repository("userDao")
public class UserDaoimpl implements UserDao {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }

    @Override
    public void save(User user) {

    }

    @Override
    public User findById(int id) {
        return userMapper.findByid(id);
    }
}
